package com.sz.framework.utils;

import android.app.Activity;

import com.blankj.utilcode.util.BarUtils;
import com.sz.framework.R;

/**
 * 状态栏工具类
 */
public class BarUtil {

    /**
     * 设置状态栏字体为白色
     *
     * @param activity 当前activity
     */
    public static void setStatusBarDarkIcon(Activity activity) {
        BarUtils.setStatusBarColor(activity, ResourceUtil.getColor(activity,
                R.color.c_00FFFFFF), 0, true);
        if (OSHelper.isFlyme()) {
            StatusbarColorUtils.setStatusBarDarkIcon(activity, false);
        }
    }

}
